import axios from 'axios'

export const CwPerformancesplitService = class CwPerformancesplitService {
    static cwPerformancesplitService = null;
    requestUrl = 'http://localhost/cwPerformancesplits'

    static getInstance() {
        if (this.cwPerformancesplitService == null) {
            this.cwPerformancesplitService = new CwPerformancesplitService()
        }
        return this.cwPerformancesplitService
    }

    /**
     * 根据案件查询
     * @param id
     */
    getByCaseLaw(id){
        return axios.get(`${this.requestUrl}/law/${id}`)
    }
}